Skip to content

ci: add GitHub Actions workflow for lint, test, and build - #55

Closed
t0kubetsu wants to merge 2 commits into
mainfrom
ci/github-actions
Closed

ci: add GitHub Actions workflow for lint, test, and build#55
t0kubetsu wants to merge 2 commits into
mainfrom
ci/github-actions

Conversation

@t0kubetsu

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/ci.yml that runs on every push and pull request to main:

  1. npm ci — reproducible install
  2. npm run lint — ESLint
  3. npm run test:unit -- --run — Vitest unit tests
  4. npm run build — production build

Uses Node.js 24 on ubuntu-latest, matching the project's Dockerfile.

Closes #51

Test plan

  • Push a commit to a branch and verify the workflow appears under the Actions tab
  • Confirm all 4 steps pass on a clean run
  • Introduce a lint error intentionally and confirm the workflow fails at the lint step

t0kubetsu added 2 commits May 11, 2026 17:17
Runs on every push and pull request to main:
- npm ci (reproducible install)
- npm run lint (ESLint)
- npm run test:unit --run (Vitest)
- npm run build (production build)

Node.js 24 matches the Dockerfile base image. Closes #51.
- Fix double slash in /network//node/list API endpoint (closes #44)
- Rename proxmoxSettingsStore Pinia ID to proxmoxSettingsV1 to avoid collision with useProxmoxSettings.js (closes #45)
- Replace stale scaffold test with real App mount smoke test (closes #46)
- Remove 30+ unused variables and imports across ProjectEditor.vue, Dashboard.vue, ConfigPanel.vue, Sidebar.vue, App.vue, and TS composables (closes #47, #48)
- Add defineOptions multi-word names to Settings, Dashboard, Sidebar views (closes #48)
- Gate vite-plugin-vue-devtools on mode === 'development' only (closes #49)
- Rename package.json name from vue-project to range42-deployer-ui (closes #52)
- Add typescript-eslint with TypeScript parser for Vue SFCs; fix vitest.config.js to resolve function-form vite config
@hyde-repo hyde-repo added the track_axis-00 Core stabilisation and hardening label May 19, 2026
@hyde-repo
hyde-repo requested a review from pparage May 19, 2026 07:57
@hyde-repo

Copy link
Copy Markdown
Member

@pparage , could you please take care of reviewing and testing this PR?
Thank you!

@pparage

pparage commented May 20, 2026

Copy link
Copy Markdown
Member

Closing as superseded by the v1 line now on dev. The CI workflow (Vitest + ESLint + build) lives in .github/workflows/schema-and-operators.yml on dev, and the bugs/lint/devtools-exposure fixes landed via #71 and #72. This branch is based on pre-v1 dev and would reintroduce old code.

@pparage pparage closed this May 20, 2026
@pparage
pparage deleted the ci/github-actions branch May 20, 2026 14:00
@t0kubetsu

Copy link
Copy Markdown
Contributor Author

Thanks for the clear context, @pparage. Just adding a note for the record: the replacement in .github/workflows/schema-and-operators.yml on dev is considerably richer than a standard lint/test/build pipeline. Beyond the Vitest + ESLint + Vite build steps this PR proposed, it also runs:

  • Schema bundle drift check — fails if schema/bundled.json is out of sync with source
  • Cross-repo checkout of range42-backend-api — pulls in the backend to run Python-side validation
  • Pydantic drift check — regenerates app/schemas/generated.py and fails on drift
  • Python pytest (tests/overlay/) — exercises the Python overlay operators
  • TS vs Python cross-compare — runs shared compose test vectors through both TS and Python implementations and diffs the output

So the replacement is a proper superset of what was proposed here, not just an equivalent.

One housekeeping note: issue #51 is still open — closing it now with a pointer to dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

track_axis-00 Core stabilisation and hardening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add GitHub Actions workflow for lint, test, and build

3 participants